home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / nt4.0 server / OEMNXPNB.IN_ / oemnxpnb.inf
INI File  |  1996-07-12  |  17KB  |  440 lines

  1. [Identification]
  2.     OptionType = NetTransport
  3. [Options]
  4.     NBF
  5. [FileConstants]
  6. UtilityInf      = "UTILITY.INF"
  7. subroutineinf   = "SUBROUTN.INF"
  8. SoftwareType    = "transport"
  9. Exit_Code       = 0
  10. NetEventDLL     = "%SystemRoot%\System32\netevent.dll"
  11. Manufacturer    = "Microsoft"
  12. ProductMajorVersion     = "4"
  13. ProductMinorVersion     = "0"
  14. ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)
  15. ProductSoftwareName     = "Nbf"
  16. ProductSoftwareImagePath = "\SystemRoot\System32\drivers\nbf.sys"
  17. NetRuleSoftwareType     = "nbf netBiosTransport rasCapableTransport"
  18. NetRuleSoftwareClass    = {"rasCapableTransport netBiosTransport"}
  19. NetRuleSoftwareUse      = $(SoftwareType)" none none"
  20. NetRuleSoftwareBindForm = """Nbf"" yes yes simple"
  21. ProductOpSupport     = 132 
  22. ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  23. ParamKeyName    = $(!NTN_ServiceBase)"\"$(ProductSoftwareName)"\Parameters"
  24. ServiceKeyName    = $(!NTN_ServiceBase)"\"$(ProductSoftwareName)
  25. NetRuleKeyName  = $(ProductKeyName)"\NetRules"
  26. [GeneralConstants]
  27. from      = ""
  28. to        = ""
  29. ExitCodeOk     = 0
  30. ExitCodeCancel = 1
  31. ExitCodeFatal  = 2
  32. KeyNull         = ""
  33. MAXIMUM_ALLOWED   = 33554432
  34. RegistryErrorIndex = NO_ERROR
  35. KeyProduct      = ""
  36. KeyParameters   = ""
  37. TRUE            = 1
  38. FALSE           = 0
  39. NoTitle            = 0
  40. ExitState   = "Active"
  41. OldVersionExisted = $(FALSE)
  42. DriverPath      = $(!STF_NTPATH)\drivers
  43. [date]
  44.     Now = {} ? $(!LIBHANDLE) GetSystemDate
  45. [Identify]
  46.     read-syms Identification
  47.     set Status     = STATUS_SUCCESSFUL
  48.     set Identifier = $(OptionType)
  49.     set Media      = #("Source Media Descriptions", 1, 1)
  50.     Return $(Status) $(Identifier) $(Media)
  51. [ReturnOptions]
  52.     set Status        = STATUS_FAILED
  53.     set OptionList     = {}
  54.     set OptionTextList = {}
  55.     set LanguageList = ^(LanguagesSupported, 1)
  56.     Ifcontains(i) $($0) in $(LanguageList)
  57.         goto returnoptions
  58.     else
  59.         set Status = STATUS_NOLANGUAGE
  60.         goto finish_ReturnOptions
  61.     endif
  62. returnoptions = +
  63.     set OptionList     = ^(Options, 1)
  64.     set OptionTextList = ^(OptionsText$($0), 1)
  65.     set Status         = STATUS_SUCCESSFUL
  66. finish_ReturnOptions = +
  67.     Return $(Status) $(OptionList) $(OptionTextList)
  68. [InstallOption]
  69.     set Option   = $($1)
  70.     set SrcDir   = $($2)
  71.     set AddCopy  = $($3)
  72.     set DoCopy   = $($4)
  73.     set DoConfig = $($5)
  74.     set LanguageList = ^(LanguagesSupported, 1)
  75.     Ifcontains(i) $($0) NOT-IN $(LanguageList)
  76.         Return STATUS_NOLANGUAGE
  77.     endif
  78.     Debug-Output "OEMNXPNB.INF: STF_CWDDIR is: "$(!STF_CWDDIR)
  79.     Debug-Output "OEMNXPNB.INF: STF_LANGUAGE is: "$(!STF_LANGUAGE)
  80.     set-subst LF = "\n"
  81.     read-syms GeneralConstants
  82.     read-syms FileConstants
  83.     read-syms DialogConstants$(!STF_LANGUAGE)
  84.     ifstr(i) $(!NTN_Origination) == "NCPA"
  85.         set Continue = $(OK)
  86.     endif
  87.     read-syms FileConstants$(!STF_LANGUAGE)
  88.     detect date
  89.     set-title  $(FunctionTitle)
  90.     set to   = Begin
  91.     set from = Begin
  92.     set CommonStatus = STATUS_SUCCESSFUL
  93.     EndWait
  94. Begin = +
  95.     Ifstr(i) $(!NTN_InstallMode) == deinstall
  96.         set StartLabel = removeadapter
  97.     else-Ifstr(i) $(!NTN_InstallMode) == Update
  98.         set StartLabel = UpgradeSoftware
  99.     else-Ifstr(i) $(!NTN_InstallMode) == bind
  100.         set StartLabel = bindingadapter
  101.     else-Ifstr(i) $(!NTN_InstallMode) == configure
  102.         Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  103.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  104.             Debug-Output "OEMNXPNB.INF: ShellCode error: cannot get an error string."
  105.             goto ShellCodeError
  106.         endif
  107.         set Error = $($R0)
  108.         set from = end
  109.         set to = end
  110.         goto nonfatalinfo
  111.     else
  112.         set StartLabel = installadapter
  113.     endif
  114.     set RadioDefault = 2
  115.     set RadioIn = {$(RadioDefault)}
  116.     set from = $(fatal)
  117.     set to = $(fatal)
  118.     goto $(StartLabel)
  119. installadapter = +
  120.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  121.     Ifstr $(KeyProduct) != $(KeyNull)
  122.         CloseRegKey $(KeyProduct)
  123.         Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
  124.             $(ProductVersion)
  125.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  126.             Debug-Output "ShellCode error: cannot get an error string."
  127.             goto ShellCodeError
  128.         endif
  129.         goto end
  130.     endif
  131.     CloseRegKey $(KeyProduct)
  132.     goto installproduct
  133. installproduct = +
  134.     StartWait
  135.     ifint $(OldVersionExisted) == $(FALSE)
  136.         Ifstr(i) $(DoCopy) == "YES"
  137.            Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  138.            Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  139.                Goto ShellCodeError
  140.            Else-Ifstr(i) $($R0) == STATUS_FAILED
  141.                Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  142.                ifint $($ShellCode) != $(!SHELL_CODE_OK)
  143.                    goto ShellCodeError
  144.                endif
  145.                set Error = $($R0)
  146.                Goto fatal
  147.            Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  148.                Goto successful
  149.            Endif
  150.            Set SrcDir = $($R1)
  151.         Endif
  152.         install "Install-Option"
  153.         ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  154.            Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
  155.            ifint $($ShellCode) != $(!SHELL_CODE_OK)
  156.                goto ShellCodeError
  157.            endif
  158.            set Error = $($R0)
  159.            goto fatal
  160.         endif
  161.         set OEM_ABANDON_ON = TRUE
  162.         Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
  163.             $(ProductSoftwareName), +
  164.             $(ProductSoftwareName), +
  165.             $(ProductSoftwareDisplayName), $(STF_CONTEXTINFNAME), +
  166.             $(ProductSoftwareImagePath), "kernel", "PNP_TDI", {}, "",+
  167.             $(NetEventDLL)
  168.         set RegistryErrorIndex = $($R0)
  169.         Ifstr(i) $(RegistryErrorIndex) !=  NO_ERROR
  170.             EndWait
  171.             CloseRegKey $($R1)
  172.             CloseRegKey $($R2)
  173.             CloseRegKey $($R3)
  174.             CloseRegKey $($R4)
  175.             CloseRegKey $($R5)
  176.             goto fatalRegistry
  177.         endif
  178.         Set SoftProductKey      = $($R1)
  179.         Set SoftNetRuleKey      = $($R2)
  180.         Set SoftServiceKey      = $($R3)
  181.         set KeyParameters       = $($R4)
  182.         Set SoftLinkageKey      = $($R5)
  183.         set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  184.                            {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  185.                            {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  186.                            {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  187.                            {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  188.                            {OperationsSupport,$(NoTitle),$(!REG_VT_DWORD),$(ProductOpSupport)},+
  189.                            {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
  190.                            {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  191.         Shell  $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
  192.         set RegistryErrorIndex = $($R0)
  193.         Ifstr $(RegistryErrorIndex) != NO_ERROR
  194.             CloseRegKey $(SoftProductKey)
  195.             CloseRegKey $(SoftNetRuleKey)
  196.             CloseRegKey $(SoftServiceKey)
  197.             CloseRegKey $(SoftLinkageKey)
  198.             CloseRegKey $(KeyParameters)
  199.             goto fatalRegistry
  200.         endif
  201.         set NewValueList = {{type    ,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)}, +
  202.                             {use     ,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  203.                             {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  204.                             {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  205.                             {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  206.         Shell  $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
  207.         set RegistryErrorIndex = $($R0)
  208.         Ifstr $(RegistryErrorIndex) != NO_ERROR
  209.             CloseRegKey $(SoftProductKey)
  210.             CloseRegKey $(SoftNetRuleKey)
  211.             CloseRegKey $(SoftServiceKey)
  212.             CloseRegKey $(SoftLinkageKey)
  213.             CloseRegKey $(KeyParameters)
  214.             goto fatalRegistry
  215.         endif
  216.         Set NewValueList = {{NbProvider,$(NoTitle),$(!REG_VT_SZ),"_nb"}}
  217.         Shell  $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
  218.         Ifstr $(RegistryErrorIndex) != NO_ERROR
  219.             CloseRegKey $(SoftProductKey)
  220.             CloseRegKey $(SoftNetRuleKey)
  221.             CloseRegKey $(SoftServiceKey)
  222.             CloseRegKey $(SoftLinkageKey)
  223.             goto fatalRegistry
  224.         endif
  225.         CreateRegKey $(SoftServiceKey) {"Performance",$(NoTitle),GenericClass} "" +
  226.                 $(MAXIMUM_ALLOWED) "" KeyPerformance
  227.         set NewValueList = {{Library,$(NoTitle),$(!REG_VT_SZ),"Perfctrs.dll"},+
  228.                            {Open,$(NoTitle),$(!REG_VT_SZ),"OpenNbfPerformanceData"},+
  229.                            {Collect,$(NoTitle),$(!REG_VT_SZ),"CollectNbfPerformanceData"},+
  230.                            {Close,$(NoTitle),$(!REG_VT_SZ),"CloseNbfPerformanceData"}}
  231.         Shell  $(UtilityInf), AddValueList, $(KeyPerformance), $(NewValueList)
  232.         set RegistryErrorIndex = $($R0)
  233.         Ifstr $(RegistryErrorIndex) != NO_ERROR
  234.             CloseRegKey $(SoftProductKey)
  235.             CloseRegKey $(SoftNetRuleKey)
  236.             CloseRegKey $(SoftServiceKey)
  237.             CloseRegKey $(SoftLinkageKey)
  238.             CloseRegKey $(KeyParameters)
  239.             goto fatalRegistry
  240.         endif
  241.         CloseRegKey $(KeyPerformance)
  242.         CloseRegKey $(SoftProductKey)
  243.         CloseRegKey $(SoftNetRuleKey)
  244.         CloseRegKey $(SoftServiceKey)
  245.         CloseRegKey $(SoftLinkageKey)
  246.     endif
  247.     Shell $(UtilityInf) AddMixRpcProtocol "Netbios" "nbf" "ncacn_nb_nb" "rpcltccm.dll" "RpcLtScm.Dll"
  248.     goto writeparameters
  249. writeparameters = +
  250.     CloseRegKey $(KeyParameters)
  251.     EndWait
  252.     goto successful
  253. bindingadapter =+
  254.     set Error = "Binding: Sorry, not yet implemented."
  255.     goto fatal
  256. removeadapter = +
  257.     Shell $(UtilityInf) RemoveRpcProtocol "ncacn_nb_nb"
  258.     Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  259.         $(ProductSoftwareName)
  260.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  261.         Debug-Output "ShellCode error"
  262.         goto ShellCodeError
  263.     endif
  264.     set RegistryErrorIndex = $($R0)
  265.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  266.         goto fatalregistry
  267.     endif
  268.     goto end
  269. UpgradeSoftware = +
  270.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  271.     Ifstr $(KeyProduct) != $(KeyNull)
  272.         install "Install-Update"
  273.         ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  274.             goto fatal
  275.         endif
  276.         SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
  277.         SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
  278.         SetRegValue $(KeyProduct) {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)}
  279.         SetRegValue $(KeyProduct) {OperationsSupport,$(NoTitle),$(!REG_VT_DWORD),$(ProductOpSupport)}
  280.         Shell $(UtilityInf) AddMixRpcProtocol "Netbios" "nbf" "ncacn_nb_nb" "rpcltccm.dll" "RpcLtScm.Dll"
  281.         OpenRegKey $(!REG_H_LOCAL) "" $(ServiceKeyName) $(MAXIMUM_ALLOWED) KeyService
  282.         Ifstr $(KeyService) != $(KeyNull)
  283.             SetRegValue $(KeyService) {Group,$(NoTitle),$(!REG_VT_SZ),"PNP_TDI"}
  284.             CloseRegKey $(KeyService)
  285.         endif
  286.         OpenRegKey $(!REG_H_LOCAL) "" $(NetRuleKeyName) $(MAXIMUM_ALLOWED) KeyNetRules
  287.         Ifstr $(KeyNetRules) != $(KeyNull)
  288.             SetRegValue $(KeyNetRules) {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}
  289.             CloseRegKey $(KeyNetRules)
  290.         endif
  291.         CloseRegKey $(KeyProduct)
  292.     else
  293.         goto fatalregistry
  294.     endif
  295.     goto end
  296. successful = +
  297.     goto end
  298. warning = +
  299.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  300.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  301.         goto ShellCodeError
  302.     endif
  303.     ifstr(i) $($R1) == "OK"
  304.         goto $(to)
  305.     else-ifstr(i) $($R1) == "CANCEL"
  306.         goto $(from)
  307.     else
  308.         goto "end"
  309.     endif
  310. nonfatalinfo = +
  311.     Set CommonStatus = STATUS_USERCANCEL
  312.     Set Severity = STATUS
  313.     goto nonfatalmsg
  314. nonfatal = +
  315.     Set Severity = NONFATAL
  316.     goto nonfatalmsg
  317. nonfatalmsg = +
  318.     ifstr(i) $(Error) == ""
  319.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  320.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  321.             goto ShellCodeError
  322.         endif
  323.         set Error = $($R0)
  324.     endif
  325.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  326.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  327.         goto ShellCodeError
  328.     endif
  329.     ifstr(i) $($R1) == "OK"
  330.         goto $(from)
  331.     else
  332.         goto "end"
  333.     endif
  334. fatalregistry = +
  335.     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  336.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  337.         goto ShellCodeError
  338.     endif
  339.     set Error = $($R0)
  340.     goto fatal
  341. fatal = +
  342.     ifstr(i) $(Error) == ""
  343.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  344.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  345.             goto ShellCodeError
  346.         endif
  347.         set Error = $($R0)
  348.     endif
  349.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  350.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  351.         goto ShellCodeError
  352.     endif
  353.     goto setfailed
  354. ShellCodeError = +
  355.     set DlgType      = "MessageBox"
  356.     set STF_MB_TITLE = $(ShellCodeErrorTitle)
  357.     set STF_MB_TEXT  = $(ShellCodeErrorText) 
  358.     set STF_MB_TYPE  = 1
  359.     set STF_MB_ICON  = 3
  360.     set STF_MB_DEF   = 1
  361.     ui start "Error Message"
  362.     goto setfailed
  363. setfailed = +
  364.     set CommonStatus = STATUS_FAILED
  365.     ifstr(i) $(OEM_ABANDON_ON) == TRUE
  366.         set OEM_ABANDON_ON = FALSE
  367.         goto removeadapter
  368.     endif
  369.     goto end
  370. end = +
  371.     goto term
  372. term = +
  373.     Return $(CommonStatus)
  374. [Install-Option]
  375.     set STF_VITAL = ""
  376.     ifstr(i) $(AddCopy) == "YES"
  377.         AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  378.     endif
  379.     ifstr(i) $(DoCopy) == "YES"
  380.        set !STF_NCPA_FLUSH_COPYLIST = TRUE
  381.        CopyFilesInCopyList
  382.     endif
  383.     ifstr(i) $(DoConfig) == "YES"
  384.     endif
  385.     Exit
  386. [Install-Update]
  387.    set STF_VITAL        = ""
  388.    set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
  389.    AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  390.    exit
  391. [Source Media Descriptions]
  392.     1 = "Windows NT Server CD-ROM", TAGFILE = cdrom_s.40
  393. [Signature]
  394.     FileType = MICROSOFT_FILE
  395. [GetSignature]
  396.     read-syms Signature
  397.     return $(FileType)
  398. [ProductType]
  399. STF_PRODUCT  = LanmanNT
  400. STF_PLATFORM = I386
  401. [Files-Inf]
  402. 2,    oemsetup.inf,     SIZE=1000,    RENAME=$(!UG_Filename)
  403. [Files-NBF]
  404. 1,NBF.SYS , SIZE=999
  405. [LanguagesSupported]
  406.     ENG
  407. [OptionsTextENG]
  408.     NBF     = "NetBEUI Protocol"
  409. [FileConstantsENG]
  410. ProCaption   = "Windows NT Setup"
  411. ProCancel    = "Cancel"
  412. ProCancelMsg = "Windows NT Networking is not correctly installed.  "+
  413.                "Are you sure you want to cancel copying files?"
  414. ProCancelCap = "Network Setup Message"
  415. ProText1     = "Copying:"
  416. ProText2     = "To:"
  417. FunctionTitle   = "NetBEUI Protocol"
  418. ProductSoftwareDescription      = "A nonroutable protocol designed for use in small LANs."
  419. ProductSoftwareDisplayName = "NetBEUI Protocol"
  420. ProductSoftwareTitle    = "NetBEUI Protocol"
  421. ShellCodeErrorTitle     = "Error: "$(FunctionTitle)
  422. ShellCodeErrorText      = "Shell Code Error."
  423. [DialogConstantsENG]
  424. Help        = "&Help"
  425. Exit        = "Cancel"
  426. OK          = "OK"
  427. HelpContext = ""
  428. Continue    = "Continue"
  429. Cancel      = "Cancel"
  430. [FileDependentDlgENG]
  431. GroupLabel = "Optimization:"
  432. Radio1 = "&Minimize Memory Used"
  433. Radio2 = "&Balance"
  434. Radio3 = "M&aximize Throughput && Connections"
  435. DlgType = "Radio"               
  436. DlgTemplate = "NBF"             
  437. Caption = $(FunctionTitle)
  438. OptionsGreyed = {}
  439. HelpContext = $(!IDH_DB_OEMNXPNB_INS)
  440.